import request from '@/utils/request';

export function getStudentScores(userName) {
    return request({
        url: '/trainingManagement/studentScore/list',
        method: 'get',
        params: { userName }, // 传递String类型的userName（学号）
    });
}

export function getScoreStats(userName) {
    return request({
        url: '/trainingManagement/studentScore/stats',
        method: 'get',
        params: { userName },
    });
}

// 原代码：url: '/system/user/info'
// 修改为：url: '/system/user/profile'
export function getUserInfo() {
    return request({
        url: '/system/user/profile', // 改为后端实际的个人信息接口路径
        method: 'get',
    });
}